package com.oa.modules.approvalsec1.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.LicenceEntity;
import com.oa.modules.approvalsec1.entity.LicenceRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface LicenceDao extends BaseMapper<LicenceEntity> {
    List<LicenceEntity> getFirst();

    List<LicenceEntity> getChildrenById(Integer id);

    List<LicenceEntity> getTextByIds(Integer[] ids);

    List<LicenceEntity> getTree();

    List<LicenceEntity> getChildrenByName(String name);

    List<LicenceEntity> getChildrenByName2(String name);

    void submit(Map<String,Object> map);

    List<Map> getCategoryTotal();

    List<Map> getDateTotal();

    long findPage(@Param("params") Map<String, Object> params);

    List<LicenceRecordEntity> findRecords(IPage page, @Param("params") Map<String, Object> params);

    List<String> selectFile(String[] idarray);
}
